/*
 * Copyright 1999-2010 Alibaba.com All right reserved. This software is the
 * confidential and proprietary information of Alibaba.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Alibaba.com.
 */
package com.alibaba.aone.casestudy.dao.impl;

import java.util.List;

import com.alibaba.aone.casestudy.common.entity.Failure;
import com.alibaba.aone.casestudy.common.entity.FailureConditions;
import com.alibaba.aone.casestudy.dao.TestDao;
import com.alibaba.intl.commons.framework.ibatis.BaseSqlMapClientDaoSupport;

/**
 * 示例 DAO ibatis 实现
 * 
 * @author gaojian 2011-4-26 上午09:51:00
 */
public class TestDaoImpl extends BaseSqlMapClientDaoSupport implements TestDao {

    /**
     * @param failureConditions
     * @return
     */
    public List<Failure> selectFailure(FailureConditions failureConditions) {
        return getSqlMapClientTemplate().queryForPagination("TEST.countFailure",
                "TEST.selectFailure", failureConditions);
    }

}
